//
//  DSZTJMessageViewController.m
//  7.13苏宁框架
//
//  Created by app15 on 15/7/20.
//  Copyright (c) 2015年 lovena. All rights reserved.
//

#import "DSZTJMessageViewController.h"

@interface DSZTJMessageViewController ()

@end

@implementation DSZTJMessageViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self loadNa];
    // Do any additional setup after loading the view.
}

-(void)loadNa{
    UIView *view=[[UIView alloc]initWithFrame:CGRectMake(0, 0, 20, 44)];
    UIButton *button=[UIButton buttonWithType:UIButtonTypeSystem];
    button=[[UIButton alloc]initWithFrame:CGRectMake(0, 0, 25, 40)];
    [button setImage:[UIImage imageNamed:@"back_black_icon"]  forState:UIControlStateNormal];
    [button addTarget:self action:@selector(back) forControlEvents:UIControlEventTouchUpInside];
    [view addSubview:button];
    UIBarButtonItem *barbutton=[[UIBarButtonItem alloc]initWithCustomView:view];
    self.navigationItem.leftBarButtonItem=barbutton;
    
}
-(void)back{
    [self.navigationController popToRootViewControllerAnimated:NO];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
